package com.beiding.sqlbuilder;

public class ConditionUnitHolder {

    private ConditionUnit conditionUnit;
    private ConditionUnitHandler handler;

    public ConditionUnitHolder(ConditionUnit conditionUnit, ConditionUnitHandler handler) {
        this.conditionUnit = conditionUnit;
        this.handler = handler;
    }

    public String execute() {
        return handler.handle(conditionUnit);
    }

    public ConditionUnit getConditionUnit() {
        return conditionUnit;
    }

    public ConditionUnitHandler getHandler() {
        return handler;
    }
}
